package com.xkdx.caipiao.presistence.quert;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class TypeQueryAction extends AbsAction {
	public TypeQueryAction() {

	}

	@Override
	public void constructRequest() {

		HashMap<String, String> mapfrist = new HashMap<String, String>();
		mapfrist.put("pageindex", "1");
		mapfrist.put("pagesize", "10");
		mapfrist.put("devicetype", "2");
		String jsonfirst = constructJson(mapfrist);
		Parameter parameterfirst = new Parameter("Event", "firstPageList",
				jsonfirst);

		HashMap<String, String> map = new HashMap<String, String>();
		String json = constructJson(map);
		Parameter parameter = new Parameter("Query", "TypeQuery", json);

		List<Parameter> list = new ArrayList<Parameter>();

		list.add(parameterfirst);
		list.add(parameter);

		requestData = constructMod(list);

	}

}
